﻿<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Split.aspx.vb" Inherits="ST_ST0021" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>

    <script type="text/javascript">
    <!--
        function funAlert() {

            if (document.getElementById("txtMessaage").value != "") {
                alert(document.getElementById("txtMessaage").value);
                document.getElementById("txtMessaage").value = "";
            }
            window.setTimeout("funAlert()", 1000)
        }
        var w;
        function funSplitClick() {
            if (window.parent.frmSet.cols == '220,10,*') {
                document.getElementById("imgSplit").src = "../../images/mopen.gif";
                document.getElementById("imgSplit").alt = "Open menu";
                w = 150;
                funClose();
            }
            else {
                document.getElementById("imgSplit").src = "../../images/mclose.gif";
                document.getElementById("imgSplit").alt = "Close menu";
                w = 0;
                funOpen();
            }
        }

        function funOpen() {
            document.getElementById("btnOpen").style.visibility = "hidden";
            document.getElementById("btnClose").style.visibility = "visible";
            parent.document.getElementById('frmSet').cols = '220,10,*';
        }

        function funClose() {
            parent.document.getElementById('frmSet').cols = '0,10,*';
            document.getElementById("btnOpen").style.visibility = "visible";
            document.getElementById("btnClose").style.visibility = "hidden";
        }

        function funSplitClick_WorkFlow() {
            if (window.parent.frmSet.cols.split(',')[1] == '220') {
                imgSplit_WorkFlow.src = "../../images/mopen_r1.gif";
                imgSplit_WorkFlow.alt = "Open WorkFlow menu";
                w = 220;
                funWorkFlowClose();
            }
            else {
                imgSplit_WorkFlow.src = "../images/mclose_r1.gif";
                imgSplit_WorkFlow.alt = "Close WorkFlow menu";
                imgSplit.src = "../images/mopen.gif";
                imgSplit.alt = "Open menu";
                w = 0;
                funWorkFlowOpen();
            }
        }

        function funWorkFlowOpen() {
            document.body.bgColor = '#f1f1f1';
            w = w + 115;
            if (w > 220) w = 220;
            window.parent.frmSet.cols = '0,' + w.toString() + ",10,*"
            if (w < 220)
                window.setTimeout("funWorkFlowOpen()", 5);
        }

        function funWorkFlowClose() {
            w = w - 115;
            if (w <= 0) {
                w = 0;
                document.body.bgColor = '#CFDDE3';
            }
            window.parent.frmSet.cols = '0,' + w.toString() + ",10,*"

            if (w > 0)
                window.setTimeout("funWorkFlowClose()", 5);
        }
        window.setTimeout("funAlert()", 1000);      
    -->
    </script>

    <script language="JavaScript">
        function MM_displayStatusMsg(msgStr) {
            status = msgStr;
            document.MM_returnValue = true;
        }
        function click() {
            if (event.button == 2) {
                alert('Right button disable')
            }
        }
        document.onmousedown = click
    </script>

</head>
<body style="background-color: Red; margin-top: 130px; margin-left: 0; background: url(../../images/title_bg32.gif);
    background-repeat: no-repeat">
    <form id="form1" runat="server">
    <asp:ImageButton ID="btnOpen" runat="server" OnClientClick=" funOpen();return false;"
        ImageUrl="~/Images/mopen.gif" />
    <asp:ImageButton ID="btnClose" runat="server" OnClientClick=" funClose();return false;"
        ImageUrl="~/Images/mclose.gif" />
    <img id="imgSplit" src="../../images/mclose.gif" style="cursor: hand; display: none;"
        alt="Open menu" onclick="funSplitClick();" /><br />
    <br />
    <img id="imgSplit_WorkFlow" src="../../images/mopen_r.gif" style="display: none;
        cursor: hand" alt="Open WorkFlow menu" onclick="funSplitClick_WorkFlow();" />
    <asp:TextBox ID="txtMessaage" Style="display: none;" runat="server" TextMode="MultiLine"></asp:TextBox>
    <asp:TextBox ID="txtClose" Style="display: none;" runat="server"></asp:TextBox>
    </form>
</body>

<script type="text/javascript">
    <!--
//    function chkClose() {

//        if (document.getElementById("txtClose").value == "Y") {

//            document.getElementById("btnOpen").style.visibility = "hidden";
//            document.getElementById("txtClose").value = ""
//        }
//    }
    funClose();
   // window.setTimeout("chkClose()", 50);
  -->
</script>

</html>
